package com.yjd.comm.role.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.role.model.RoleModel;
import com.yjd.comm.system.dto.OperParamDto;

import java.util.List;

/**
 * <b>description</b>：标的信息业务接口<br>
 * <b>time</b>：2015-01-28 16:26:12 <br>
 * <b>author</b>：  lindy lindytem@126.com
 */
public interface IRoleService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public RoleModel insert(RoleModel model, OperParamDto operParamDto) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(RoleModel model, OperParamDto operParamDto) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param role_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long role_id, OperParamDto operParamDto) throws Exception;
	
	/**
	 * 获取用户角色列表
	* @param admin_id
	* @return
	* List<RoleModel>
	 */
	public List<RoleModel> getUserRole(Integer admin_id);

}
